package com.open.center.jpa.model.page.by;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.data.domain.Sort;

/**
 * 排序
 *
 * @author Riche's
 * @since 2025/5/23
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class SortBy {

    @Schema(name = "key", description = "排序字段")
    private String key;

    @Schema(name = "direction", description = "排序：DESC(升序)/ASC(降序)")
    private Sort.Direction direction;

}
